// 创建路由
const route = require('express').Router();

// 导入验证表单数据的中间件
const expressJoi = require('@escook/express-joi');

// 获取申请书列表
route.get(
  '/books',
  require('@/middleware/filter-null.js'),
  require('./application/get-books')
);
// 获取申请表列表
route.get(
  '/sheets',
  require('@/middleware/filter-null.js'),
  require('./application/get-sheets')
);
// 获取谈话人列表
route.get(
  '/talkers',
  require('@/middleware/filter-null.js'),
  require('./application/get-talkers')
);

// 修改申请书
route.put('/book', require('./application/put-book.js'));
// 修改申请表
route.put('/sheet', require('./application/put-sheet.js'));
// 修改谈话人
route.put('/talkers', require('./application/put-talkers.js'));

// 导出路由
module.exports = route;
